<?php
	session_start();

	list($usec, $sec) = explode(' ', microtime());
	$amfphp['startTime'] = ((float)$usec + (float)$sec);
	
	$servicesPath = 'services/';
	$voPath = 'services/vo/';

	define("PRODUCTION_SERVER", false);
	define("BASE_DIR", str_replace('\\', '/', dirname(__FILE__)));
	
	if(!PRODUCTION_SERVER)
	{
		define('DB_HOST', 'localhost');
		define('DB_USER', 'root');
		define('DB_PASS', '');
		define('DB_NAME', 'mountaineer');
	}
	
	require_once('lib/adodb5/adodb.inc.php');
	$ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
	
	function __autoload($class_name) {
		$class_path = str_replace('\\', '/', dirname(__FILE__)) . '/classes/' . $class_name . '.php';
		if(is_file($class_path))
			require_once $class_path;
	}
